<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnPartnerInTaskMember extends AbstractMigration
{
    public function up()
    {
        $this->table('task_member')
            ->addColumn('partner', 'integer', [
                'signed' => false,
                'limit' => 11,
                'comment' => '参与者'
            ])
            ->save();
    }

    public function down()
    {
        $this->table('task_member')
            ->removeColumn('partner')
            ->save();
    }
}
